/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package packageModel;

import java.io.Serializable;

/**
 *
 * @author laurent
 */
public class Product implements Serializable
{
    private int id;
    private String name;
    private double unitaryPrice;
    private String description;
    private String imagePath;
    private boolean availlable;
    private Promotion promo;
    
    public Product(int productID, String productName, double unitaryPrice, String description, String imagePath, boolean availlable)
    {
        this.id = productID;
        this.name = productName;
        this.unitaryPrice = unitaryPrice;
        this.description = description;
        this.imagePath = imagePath;
        this.availlable = availlable;

    }
    
    public Product()
    {
        
    }
    
    public int getId() { return id; }
    public String getName() { return name; }
    public double getUnitaryPrice() { return unitaryPrice; }
    public String getDescription() { return description; }
    public String getImagePath() { return imagePath; }
    public boolean getAvaillable() { return availlable; }
    public Promotion getPromotion() { return promo; }
    
    public void setId(int productID) { this.id = productID; }
    public void setProductName(String productName) { this.name = productName; }
    public void setUnitaryPrice(double unitaryPrice) { this.unitaryPrice = unitaryPrice; }
    public void setDescription(String description) { this.description = description; }
    public void setImagePath(String imagePath) { this.imagePath = imagePath; }
    public void setAvaillable(boolean availlable) { this.availlable = availlable; }
    public void setPromotion(Promotion promo) { this.promo = promo; }
}
